import base from './base'

export default class News extends base {
    /**
   * 获取bannner数据
   */
    static async getBannerList(options) {
        const url = `${this.baseUrl}/adm/banner/list`
        return this.get(url, options)
    }

    /**
  * 编辑banner
  */
    static async editBanner(options) {
        const url = `${this.baseUrl}/adm/banner/edit`
        return this.post(url, options)
    }
    /**
    * 设置状态
    */
    static async setBanner(options) {
        const url = `${this.baseUrl}/adm/banner/setStatus`
        return this.post(url, options)
    }
    /**
       * 设置状态
       */
    static async deleteBanner(options) {
        const url = `${this.baseUrl}/adm/banner/delete`
        return this.post(url, options)
    }
}
